﻿using System.Configuration;

namespace Kratos.Framework.Configurations
{
    public class KratosDataProviderConfigurationElementCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new KratosDataProviderConfigurationElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((KratosDataProviderConfigurationElement)element).Name;
        }

        public override ConfigurationElementCollectionType CollectionType
        {
            get { return ConfigurationElementCollectionType.AddRemoveClearMap; }
        }

        protected new internal KratosDataProviderConfigurationElement BaseGet(int index)
        {
            return (KratosDataProviderConfigurationElement)base.BaseGet(index);
        }
    }
}
